#include <stdio.h>
#include <stdlib.h>


int taille(void *buf)
{
  
  return sizeof(buf);
}


int main()
{
  
  char *s = "Coucou Toi";
  
  void *buf;
  buf = malloc(10*sizeof(void));

  memcpy(buf,s,10);

  printf("s : %s\n",s);
  printf("str : %s\n",(char*)buf);

  s = "Coucou Moi";
  
  printf("s : %s\n",s);
  printf("str : %s\n",(char*)buf);


  return 0;
}

